package com.cf.controller;

import com.cf.model.Test;
import com.cf.model.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * boot-crud-TestController
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/16 下午 06:44
 */
@RestController
public class TestController {
    @Autowired
    private TestService testService;

    @RequestMapping("/all")
    public List<Test> list() {
        return testService.selectAll();
    }
}
